#include "Platform.h"
#include <QFile>
#include <QIODevice>
//#include <QDomDocument>
//#include <QDomNode>
#include <QDebug>
//#include <QSqlError>
//#include <QSqlQuery>
//#include <QSqlRecord>
#include <QRegExp>
#include <QTextCodec>
//#include <QProcess>
#include <QDir>

Platform* Platform::_Instance = NULL;

Platform* Platform::getInstance()
{
    if (!_Instance)
    {
        _Instance = new Platform(NULL);
    }
    return _Instance;
}

Platform *Platform::qmlAttachedProperties(QObject *parent)
{
    if (!_Instance)
    {
        _Instance = new Platform(parent);
    }
    return _Instance;
}

bool Platform::isChooseFirstPath() const
{
     return m_bIsChooseFirstPath;
}

void Platform::setIsChooseFirstPath(bool isChoose)
{
     m_bIsChooseFirstPath = isChoose;
}

Platform::Platform(QObject *parent):QObject(parent)
{

}

Platform::~Platform()
{

}
